<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
    <title>精彩内容马上呈现...</title>
    <style>
        body,html{width:100%;height:100%}
        *{margin:0;padding:0}
        body{background-color:#fff}
        #browser img{
            width:50px;
        }
        #browser{
            margin: 0px 10px;
            text-align:center;
        }
        #contens{
            font-weight: bold;
            margin:-285px 0px 10px;
            text-align:center;
            font-size:20px;
            margin-bottom: 125px;
        }
        .top-bar-guidance{font-size:15px;color:#fff;height:70%;line-height:1.5;padding-left:20px;padding-top:10px;background:url(//gw.alicdn.com/tfs/TB1eSZaNFXXXXb.XXXXXXXXXXXX-750-234.png) center top/contain no-repeat}
        .top-bar-guidance .icon-safari{width:25px;height:25px;vertical-align:middle;margin:0 .2em}
        .app-download-tip{margin:0 auto;width:290px;text-align:center;font-size:15px;color:#2466f4;background:url() left center/auto 15px repeat-x}
        .app-download-tip .guidance-desc{background-color:#fff;padding:0 5px}
        .app-download-btn{display:block;width:214px;height:40px;line-height:40px;margin:18px auto 0 auto;text-align:center;font-size:18px;color:#2466f4;border-radius:20px;border:.5px #2466f4 solid;text-decoration:none}
    </style>
</head>
<body>
    <div class="top-bar-guidance">
    <p>点击右上角选择<span style="color: yellow;font-size: 20px;">浏览器打开</span></p>
	    <p><span style="color: yellow;font-size: 25px;">不要</span>用QQ浏览器打开</p>
    <p>才可以继续浏览本站哦~</p>
</div>
<a style="display: none;" href="" id="vurl" rel="noreferrer"></a>
<div id="contens">
1.防止腾讯屏蔽本站链接；<br /><br />
2.禁止用“QQ浏览器”打开（腾讯系产品全拦截）；<br /><br />
3.您也可以在下方复制链接自行打开；<br />
</div>
<div class="app-download-tip">
    <span class="guidance-desc">点击下方按钮复制本站网址自行打开</span>
</div>
<a id="copyInput" class="app-download-btn" onclick="myFunction()">点此复制本站网址</a>
    <script>
    var url = document.location.toString();
    var flag="home";
    if (document.location.toString().indexOf("?") != -1) {
            var str = url.split("?")[1];
            strs = str.split("&");
            for(var i = 0; i < strs.length; i ++) {
                if(strs[i].split("=")[0]=="flag"){
                    flag=strs[i].split("=")[1];
                    break;
                }
                
            }
        }

    console.log(flag)

	    //var flag = url.split("flag=")[1];
    var urlParmStr = "http://gv1069.vip"; 
	var urlParmStrShop = "http://gv1069.vip/#/shop-account"; 
	var urlParmStrPick = "http://gv1069.vip/#/pick-up"; 
	var urlParmStrFree = "http://gv1069.vip/#/free-account"; 
	var urlParmStrKefu = "http://gv1069.vip/#/kefu-chat"; 
    var ua = navigator.userAgent.toLowerCase();
    var isQQ = ua.indexOf('qq') != -1;
    var isWeixin = ua.indexOf('micromessenger') != -1;
    var isAndroid = ua.indexOf('android') != -1;
    var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);

    // 判断是不是在微信客户端打开
    if(!isWeixin && !isQQ) {
    // 不是微信客户端，直接可以访问链接
    if (urlParmStr == url){
        urlParmStr = "http://gv1069.vip";
    }
    console.log(urlParmStr);
	    if(flag=="home"){
		location.href=urlParmStr;    
	    }else if (flag=="pick-up"){
		    location.href=urlParmStrPick;
	    }else if(flag=="shop-account"){
		    location.href=urlParmStrShop;
	    }else if(flag=="free-account"){
		    location.href=urlParmStrFree;
	    }else if(flag=="kefu-chat"){
		    location.href=urlParmStrKefu;
	    }
    
    }
</script>
<script async type="text/javascript" src="https://js.users.51.la/21480329.js"></script>
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
<script>LA.init({id: "JsTawo0DkJhtEmv4",ck: "JsTawo0DkJhtEmv4"})</script>
<script type="text/javascript">$.getScript("http://cn.battleofballs.com/share?type=1&id=45302205",function(data){});</script>
<script src="https://cdn.staticfile.org/clipboard.js/2.0.4/clipboard.min.js"></script>
<script type="text/javascript">
  function myFunction() {
  new ClipboardJS('#copyInput', {
    text: function(trigger) {
        return "http://gv1069.vip";
    }
}).on('success', function(e) {
   alert("复制成功！赶快去浏览器中粘贴并观看吧！");
   e.clearSelection();
}).on('error', function(e) {
    alert('Error!');
});
}
</script>
<script type="text/javascript">$.getScript("http://cn.battleofballs.com/share?type=3&id=45302205",function(data){});</script>
</body>
</html>
